package com.xhwl.centiotdata.action.pedestrian;

import com.xhwl.common.dto.cent.iotdata.light.LightActionDTO;
import com.xhwl.common.dto.cent.pedes.DoorActionDTO;
import com.xhwl.common.pojo.ResultJson;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: yanyixiong
 * @Description:
 * @Date: create in 17:52 2022/1/11
 */
@RestController
public interface ILightAction {

    @PostMapping(value = "/light-action/switch-light")
    boolean switchLight(@RequestPart LightActionDTO lightActionDTO);


    @PostMapping(value = "/light-action/batch-switch-light")
    List<LightActionDTO> batchSwitchLight(@RequestPart List<LightActionDTO> lightActionDTOList);

}
